home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / asteroid.swf / scripts / __Packages / com / evilfree / astroidsRevenge / ShipMinePlayer.as < prev    next >
Text File  |  2010-11-09  |  6KB  |  202 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 249 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = -880 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 365)
  9.    {
  10.       set("\x01",eval("\x01") + 502);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 694)
  14.    {
  15.       set("\x01",eval("\x01") - 394);
  16.    }
  17.    else if(eval("\x01") == 741)
  18.    {
  19.       set("\x01",eval("\x01") - 499);
  20.       if(function ┬º\x01\x02┬º()
  21.       {
  22.          return 249 % 511 * 5;
  23.       })
  24.       {
  25.          set("\x01",eval("\x01") + 527);
  26.       }
  27.    }
  28.    else if(eval("\x01") == 867)
  29.    {
  30.       set("\x01",eval("\x01") - 106);
  31.       if(function ┬º\x01\x02┬º()
  32.       {
  33.          return 249 % 511 * 5;
  34.       })
  35.       {
  36.          set("\x01",eval("\x01") - 62);
  37.       }
  38.    }
  39.    else if(eval("\x01") == 242)
  40.    {
  41.       set("\x01",eval("\x01") + 527);
  42.    }
  43.    else if(eval("\x01") == 699)
  44.    {
  45.       set("\x01",eval("\x01") - 399);
  46.    }
  47.    else
  48.    {
  49.       if(eval("\x01") == 761)
  50.       {
  51.          set("\x01",eval("\x01") - 62);
  52.          break;
  53.       }
  54.       if(eval("\x01") == 300)
  55.       {
  56.          set("\x01",eval("\x01") - 50);
  57.          ┬º┬ºpush("\x0f");
  58.          ┬º┬ºpush(1);
  59.       }
  60.       else if(eval("\x01") == 250)
  61.       {
  62.          set("\x01",eval("\x01") + 490);
  63.          var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  64.          {
  65.             return 249 % 511 * 5;
  66.          };
  67.       }
  68.       else if(eval("\x01") == 710)
  69.       {
  70.          set("\x01",eval("\x01") + 31);
  71.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  72.          {
  73.             return 249 % 511 * 5;
  74.          });
  75.       }
  76.       else if(eval("\x01") == 740)
  77.       {
  78.          set("\x01",eval("\x01") - 22);
  79.          ┬º┬ºpush("\x0f");
  80.       }
  81.       else
  82.       {
  83.          if(eval("\x01") == 769)
  84.          {
  85.             set("\x01",eval("\x01") - 627);
  86.             if(!_global.com)
  87.             {
  88.                _global.com = new Object();
  89.             }
  90.             function ┬º\x01\x02┬º()
  91.             {
  92.                return 249 % 511 * 5;
  93.             }
  94.             if(!_global.com.evilfree)
  95.             {
  96.                _global.com.evilfree = new Object();
  97.             }
  98.             ┬º┬ºpop();
  99.             if(!_global.com.evilfree.astroidsRevenge)
  100.             {
  101.                _global.com.evilfree.astroidsRevenge = new Object();
  102.             }
  103.             ┬º┬ºpop();
  104.             if(!_global.com.evilfree.astroidsRevenge.ShipMinePlayer)
  105.             {
  106.                com.evilfree.astroidsRevenge.ShipMinePlayer extends com.evilfree.astroidsRevenge.ShipMine;
  107.                var _loc2_ = com.evilfree.astroidsRevenge.ShipMinePlayer = function(m, target_mc, s)
  108.                {
  109.                   super(m,target_mc,s);
  110.                   this.mineType = "player";
  111.                }.prototype;
  112.                _loc2_.place_mc = function(target_mc)
  113.                {
  114.                   this.myDepth = target_mc.getNextHighestDepth();
  115.                   this.my_mc = target_mc.attachMovie("mineShipPlayer","ship" + this.myDepth,this.myDepth);
  116.                };
  117.                _loc2_.avoidThese = function(asteroidList)
  118.                {
  119.                   if(asteroidList == undefined)
  120.                   {
  121.                      return undefined;
  122.                   }
  123.                   var _loc12_ = asteroidList.length;
  124.                   var _loc4_ = 0;
  125.                   while(_loc4_ < _loc12_)
  126.                   {
  127.                      var _loc2_ = asteroidList[_loc4_];
  128.                      var _loc5_ = this.getTargetXDistance(_loc2_);
  129.                      var _loc6_ = this.getTargetYDistance(_loc2_);
  130.                      var _loc3_ = Math.sqrt(_loc5_ * _loc5_ + _loc6_ * _loc6_);
  131.                      if(_loc3_ < _loc2_.getSize() / 2 + this.size / 2)
  132.                      {
  133.                         if(_loc2_ == this.main.getPlayerAsteroid())
  134.                         {
  135.                            _loc2_.bulletHitMe(this.size * 5);
  136.                         }
  137.                         this.blowUp();
  138.                         return 1;
  139.                      }
  140.                      if(_loc3_ < 150)
  141.                      {
  142.                         var _loc8_ = this.myAtan(_loc6_,_loc5_);
  143.                         var _loc10_ = this.myCos(_loc8_);
  144.                         var _loc9_ = this.mySin(_loc8_);
  145.                         var _loc7_ = (150 - _loc3_) / 150;
  146.                         this.xSpeed += 2 * _loc10_ * _loc7_;
  147.                         this.ySpeed += 2 * _loc9_ * _loc7_;
  148.                      }
  149.                      _loc4_ = _loc4_ + 1;
  150.                   }
  151.                   return 0;
  152.                };
  153.                _loc2_.damageThese = function(asteroidList)
  154.                {
  155.                   if(asteroidList == undefined)
  156.                   {
  157.                      return undefined;
  158.                   }
  159.                   var _loc10_ = asteroidList.length;
  160.                   var _loc4_ = 0;
  161.                   while(_loc4_ < _loc10_)
  162.                   {
  163.                      var _loc2_ = asteroidList[_loc4_];
  164.                      var _loc6_ = this.getTargetXDistance(_loc2_);
  165.                      var _loc7_ = this.getTargetYDistance(_loc2_);
  166.                      var _loc5_ = Math.sqrt(_loc6_ * _loc6_ + _loc7_ * _loc7_);
  167.                      var _loc3_ = this.size * 2 + _loc2_.getSize();
  168.                      if(_loc5_ < _loc3_)
  169.                      {
  170.                         var _loc8_ = (_loc3_ - _loc5_) / _loc3_;
  171.                         if(_loc2_ == this.main.getPlayerAsteroid())
  172.                         {
  173.                            _loc2_.bulletHitMe(this.size * 2 * _loc8_);
  174.                         }
  175.                      }
  176.                      _loc4_ = _loc4_ + 1;
  177.                   }
  178.                   return 0;
  179.                };
  180.                ┬º┬ºpush(ASSetPropFlags(com.evilfree.astroidsRevenge.ShipMinePlayer.prototype,null,1));
  181.             }
  182.             ┬º┬ºpop();
  183.             break;
  184.          }
  185.          if(eval("\x01") != 718)
  186.          {
  187.             if(eval("\x01") == 142)
  188.             {
  189.                set("\x01",eval("\x01") - 142);
  190.                break;
  191.             }
  192.             break;
  193.          }
  194.          set("\x01",eval("\x01") - 8);
  195.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  196.          {
  197.             return 249 % 511 * 5;
  198.          }));
  199.       }
  200.    }
  201. }
  202.